package com.ygqh.baby.model.wdt.qyb;

import com.alibaba.fastjson.annotation.JSONField;

public class WdtQybStockChange {
	/**
	 * Erp内平台货品表主键id，用于状态回传接口使用
	 */
	@JSONField(name = "rec_id")
	private Integer recId;
	/**
	 * 外部系统货品主键，外部系统推送订单时使用的，erp只是保存了下外部系统的值
	 */
	@JSONField(name = "goods_id")
	private String goodsId;
	/**
	 * 外部系统货品规格id
	 */
	@JSONField(name = "spec_id")
	private String specId;
	/**
	 * 该库存是通过配置计算出来的，使用该接口注意配置库存同步策略
	 */
	@JSONField(name = "sync_stock")
	private Integer syncStock;
	/**
	 * 库存变化时自增用于状态回传接口使用，状态回传时把该值一并回传即可，不用深究其含义
	 */
	@JSONField(name = "stock_change_count")
	private Integer stockChangeCount;

	public Integer getRecId() {
		return recId;
	}

	public void setRecId(Integer recId) {
		this.recId = recId;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public String getSpecId() {
		return specId;
	}

	public void setSpecId(String specId) {
		this.specId = specId;
	}

	public Integer getSyncStock() {
		return syncStock;
	}

	public void setSyncStock(Integer syncStock) {
		this.syncStock = syncStock;
	}

	public Integer getStockChangeCount() {
		return stockChangeCount;
	}

	public void setStockChangeCount(Integer stockChangeCount) {
		this.stockChangeCount = stockChangeCount;
	}

	@Override
	public String toString() {
		return "WdtQybStockChange [recId=" + recId + ", goodsId=" + goodsId + ", specId=" + specId + ", syncStock=" + syncStock + ", stockChangeCount="
				+ stockChangeCount + "]";
	}

}
